package com.ly.heart.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ly.common.core.domain.BaseVo;
import lombok.Data;
import lombok.experimental.Accessors;
import com.ly.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 供应商联系人对象 erp_supplier_contacts
 *
 * @author cxl
 * @date 2024-06-16
 */
@TableName ("erp_supplier_contacts")
@ApiModel (value = "供应商联系人", description = "供应商联系人")
@Data
@Accessors(chain = true)
public class SupplierContactsEntity extends BaseVo {


        /** 主键id */
        @TableId (type = IdType.INPUT)
        private String id;

        /** 供应商id */
        @ApiModelProperty ("供应商id")
        @TableField ("supplier_id")
        @Excel (name = "供应商id")
        private String supplierId;

        /** 联系人id */
        @ApiModelProperty ("联系人id(金蝶基础数据联系人表id)")
        @TableField ("contacts_id")
        @Excel (name = "联系人id")
        private String contactsId;

        /** 联系人编码 */
        @ApiModelProperty ("联系人编码")
        @TableField ("contacts_code")
        @Excel (name = "联系人编码")
        private String contactsCode;

        /** 姓名 */
        @ApiModelProperty ("姓名")
        @TableField ("name")
        @Excel (name = "姓名")
        private String name;

        /** 性别(0男 1女 2未知) */
        @ApiModelProperty ("性别(0男 1女 2未知)")
        @TableField ("sex")
        @Excel (name = "性别(0男 1女 2未知)")
        private String sex;

        /** 职务 */
        @ApiModelProperty ("职务")
        @TableField ("position")
        @Excel (name = "职务")
        private String position;

        /** 固定电话 */
        @ApiModelProperty ("固定电话")
        @TableField ("work_tel")
        @Excel (name = "固定电话")
        private String workTel;

        /** 类型 */
        @ApiModelProperty ("类型，1=供应商联系人；2=客户联系人")
        @TableField ("type")
        @Excel (name = "类型")
        private String type;

        /** 所属公司 */
        @ApiModelProperty ("所属公司")
        @TableField ("belong_company")
        @Excel (name = "所属公司")
        private String belongCompany;

        /** 移动电话 */
        @ApiModelProperty ("移动电话")
        @TableField ("mobile")
        @Excel (name = "移动电话")
        private String mobile;

        /** 邮件地址 */
        @ApiModelProperty ("邮件地址")
        @TableField ("email")
        @Excel (name = "邮件地址")
        private String email;

        /** 传真 */
        @ApiModelProperty ("传真")
        @TableField ("fax")
        @Excel (name = "传真")
        private String fax;

        /** 地点编码 */
        @ApiModelProperty ("地点编码")
        @TableField ("address_code")
        @Excel (name = "地点编码")
        private String addressCode;

        /** 地点名称 */
        @ApiModelProperty ("地点名称")
        @TableField ("address_name")
        @Excel (name = "地点名称")
        private String addressName;

        /** 详细地址 */
        @ApiModelProperty ("详细地址")
        @TableField ("address")
        @Excel (name = "详细地址")
        private String address;

        /** 是否默认联系人 */
        @ApiModelProperty ("是否默认联系人")
        @TableField ("is_default")
        @Excel (name = "是否默认联系人")
        private Boolean isDefault;

        /** 创建人Id */
        @ApiModelProperty ("创建人Id")
        @TableField ("user_id")
        @Excel (name = "创建人Id")
        private String userId;

        @ApiModelProperty ("创建时间")
        @TableField ("create_time")
        @JsonFormat ( pattern = "yyyy-MM-dd HH:mm:ss" )
        private Date createTime;

        /** 更新时间 */
        @ApiModelProperty ("更新时间")
        @TableField ("change_time")
        @JsonFormat ( pattern = "yyyy-MM-dd HH:mm:ss" )
        private Date changeTime;


        @ApiModelProperty ("逻辑删除")
        @TableField ("is_used")
        @Excel (name = "逻辑删除")
        private Integer isUsed;

        @ApiModelProperty ("联系人基础信息")
        @TableField(exist = false)
        private KingBaseContactsEntity kingBaseContacts;


}
